package com.itheima.manager;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.domain.PmsProductAttribute;
import com.itheima.service.db.PmsProductAttributeService;
import com.itheima.util.R;
import com.itheima.vo.PageBeanVo;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Component;

@Component
public class PmsProductAttributeManager {

    @DubboReference
    PmsProductAttributeService pmsProductAttributeService;


//    public R listCid(Integer cid, Integer pageNum, Integer pageSize, Integer type) {
//        Page<PmsProductAttribute> page=pmsProductAttributeService.listCid(cid,pageNum,pageSize,type);
//        return R.success(new PageBeanVo(pageNum,pageSize,page.getTotal(),page.getRecords()));
//    }
}
